(this.webpackJsonparimo=this.webpackJsonparimo||[]).push([[13],{333:function(e,t,a){"use strict";var n=a(2),s=a(6),c=a(7),l=a(12),r=a(13),i=a(0),o=a.n(i),m=a(308),u=a(17),d=a(313),p=(a(334),function(e){Object(l.a)(a,e);var t=Object(r.a)(a);function a(e){var n;return Object(s.a)(this,a),(n=t.call(this,e)).requestParams={includes:"group,spotify,owner",fields:"projects.name,projects.id",orderBy:"-id"},n.handleChange=function(e){n.props.onChange(e),n.setState({value:e})},n.state={selectOptions:[],value:""},n}return Object(c.a)(a,[{key:"getProjectList",value:function(){var e=this;this.props.projectList.length&&this.setState({selectOptions:this.props.projectList.filter((function(t){return!e.props.onlyOwners||t.owner.id===e.props.owner})).map((function(e){return Object(n.a)(Object(n.a)({},e),{},{value:e.id,label:e.name,group_id:e.group.id})}))})}},{key:"componentDidMount",value:function(){this.props.owner&&(this.requestParams.owner=this.props.owner),this.props.isGetProjects&&this.props.getProjectList(this.requestParams),this.getProjectList()}},{key:"componentDidUpdate",value:function(e,t,a){e.projectList!==this.props.projectList&&this.getProjectList()}},{key:"render",value:function(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(m.a,{className:"input-dark-bg ".concat(this.props.className," ").concat(this.props.required?"is-invalid input-invalid":""),maxMenuHeight:this.props.maxMenuHeight,classNamePrefix:"dark_select",value:this.state.value||this.props.selectedProject,options:this.state.selectOptions,onChange:this.handleChange,name:"color"}),o.a.createElement("div",{className:"invalid-feedback"},"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442"))}}]),a}(i.Component));t.a=Object(u.b)(null,{getProjectList:d.f})(p)},334:function(e,t,a){},393:function(e,t,a){"use strict";var n,s=a(5),c=a(10),l=a(9),r=a(14),i=a(30),o=a(0),m=a.n(o),u=a(1),d=a.n(u),p=a(4),f=a.n(p),y=a(77),h=a(3),E=Object(i.a)({},y.Transition.propTypes,{isOpen:d.a.bool,children:d.a.oneOfType([d.a.arrayOf(d.a.node),d.a.node]),tag:h.tagPropType,className:d.a.node,navbar:d.a.bool,cssModule:d.a.object,innerRef:d.a.oneOfType([d.a.func,d.a.string,d.a.object])}),g=Object(i.a)({},y.Transition.defaultProps,{isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:h.TransitionTimeouts.Collapse}),b=((n={})[h.TransitionStatuses.ENTERING]="collapsing",n[h.TransitionStatuses.ENTERED]="collapse show",n[h.TransitionStatuses.EXITING]="collapsing",n[h.TransitionStatuses.EXITED]="collapse",n);function v(e){return e.scrollHeight}var N=function(e){function t(t){var a;return(a=e.call(this,t)||this).state={height:null},["onEntering","onEntered","onExit","onExiting","onExited"].forEach((function(e){a[e]=a[e].bind(Object(l.a)(a))})),a}Object(r.a)(t,e);var a=t.prototype;return a.onEntering=function(e,t){this.setState({height:v(e)}),this.props.onEntering(e,t)},a.onEntered=function(e,t){this.setState({height:null}),this.props.onEntered(e,t)},a.onExit=function(e){this.setState({height:v(e)}),this.props.onExit(e)},a.onExiting=function(e){e.offsetHeight;this.setState({height:0}),this.props.onExiting(e)},a.onExited=function(e){this.setState({height:null}),this.props.onExited(e)},a.render=function(){var e=this,t=this.props,a=t.tag,n=t.isOpen,l=t.className,r=t.navbar,o=t.cssModule,u=t.children,d=(t.innerRef,Object(c.a)(t,["tag","isOpen","className","navbar","cssModule","children","innerRef"])),p=this.state.height,E=Object(h.pick)(d,h.TransitionPropTypeKeys),g=Object(h.omit)(d,h.TransitionPropTypeKeys);return m.a.createElement(y.Transition,Object(s.a)({},E,{in:n,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),(function(t){var n=function(e){return b[e]||"collapse"}(t),c=Object(h.mapToCssModules)(f()(l,n,r&&"navbar-collapse"),o),d=null===p?null:{height:p};return m.a.createElement(a,Object(s.a)({},g,{style:Object(i.a)({},g.style,{},d),className:c,ref:e.props.innerRef}),u)}))},t}(o.Component);N.propTypes=E,N.defaultProps=g,t.a=N},445:function(e,t,a){"use strict";var n=a(5),s=a(10),c=a(0),l=a.n(c),r=a(1),i=a.n(r),o=a(4),m=a.n(o),u=a(3),d={children:i.a.node,bar:i.a.bool,multi:i.a.bool,tag:u.tagPropType,value:i.a.oneOfType([i.a.string,i.a.number]),max:i.a.oneOfType([i.a.string,i.a.number]),animated:i.a.bool,striped:i.a.bool,color:i.a.string,className:i.a.string,barClassName:i.a.string,cssModule:i.a.object},p=function(e){var t=e.children,a=e.className,c=e.barClassName,r=e.cssModule,i=e.value,o=e.max,d=e.animated,p=e.striped,f=e.color,y=e.bar,h=e.multi,E=e.tag,g=Object(s.a)(e,["children","className","barClassName","cssModule","value","max","animated","striped","color","bar","multi","tag"]),b=Object(u.toNumber)(i)/Object(u.toNumber)(o)*100,v=Object(u.mapToCssModules)(m()(a,"progress"),r),N=Object(u.mapToCssModules)(m()("progress-bar",y&&a||c,d?"progress-bar-animated":null,f?"bg-"+f:null,p||d?"progress-bar-striped":null),r),x=h?t:l.a.createElement("div",{className:N,style:{width:b+"%"},role:"progressbar","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":o,children:t});return y?x:l.a.createElement(E,Object(n.a)({},g,{className:v,children:x}))};p.propTypes=d,p.defaultProps={tag:"div",value:0,max:100},t.a=p},619:function(e,t,a){},620:function(e,t,a){},818:function(e,t,a){"use strict";a.r(t);var n=a(0),s=a.n(n),c=a(17),l=a(500),r=a(501),i=a(107),o=a(173),m=a(498),u=a(349),d=a.n(u),p=a(48),f=function(e){var t={chart:{id:"subscribers",toolbar:{show:!1},sparkline:{enabled:!0},parentHeightOffset:15},grid:{show:!1},colors:e.percent.color?[e.percent.color]:["#727cf5"],dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2.5},fill:{type:"gradient",gradient:{shadeIntensity:.9,opacityFrom:.7,opacityTo:.5,stops:[0,80,100]}},xaxis:{labels:{show:!1},axisBorder:{show:!1}},yaxis:{labels:{show:!1}},tooltip:{x:{show:!1}},markers:{strokeWidth:2,hover:{sizeOffset:4}}},a=e.type||"area",n=[{name:e.title||"Data",data:e.data||[]}];return s.a.createElement(m.a,{className:"analytics-card-container"},s.a.createElement("div",{className:"d-flex justify-content-between statistics-card"},s.a.createElement("div",{className:"d-flex justify-content-between st-card-title__count"},s.a.createElement("h3",{className:"analytics-card__title"},e.title),s.a.createElement("h2",{className:"analytics-card__value mb-0"},Object(p.c)(e.count))),s.a.createElement("div",{className:"pl-0 st-card-charts__percent"},s.a.createElement(d.a,{className:"apex-charts st-card-chart",options:t,series:n,type:a,height:37}),s.a.createElement("span",{style:{color:e.percent.color},className:"st-card-percent"},e.percent.value))))},y=function(e){return s.a.createElement("svg",{width:e.width||"59",height:e.height||"55",viewBox:"0 0 59 55",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{d:"M31.6222 54.8777C17.7131 54.8955 6.00849 44.4651 4.42913 30.6462C4.35106 29.9681 4.83686 29.355 5.51497 29.2765C6.19307 29.1984 6.80611 29.6842 6.88467 30.3623C8.31558 42.9349 18.9633 52.4101 31.6343 52.4101C45.3665 52.4101 56.5448 41.2322 56.5448 27.5C56.5448 13.7678 45.3544 2.5899 31.6222 2.5899C30.9407 2.5899 30.3884 2.0371 30.3884 1.35611C30.3884 0.67463 30.9407 0.122314 31.6222 0.122314C42.6955 0.121833 52.6786 6.79203 56.9164 17.0224C61.1537 27.2527 58.811 39.0287 50.9802 46.858C45.8576 52.0101 38.8871 54.8979 31.6222 54.8777Z",fill:"#00EFD1"}),s.a.createElement("path",{d:"M41.2331 30.7941H30.2523C29.5718 30.7922 29.0205 30.2408 29.0186 29.5603V15.1495C29.0186 14.4685 29.5709 13.9157 30.2523 13.9157C30.9338 13.9157 31.4861 14.4685 31.4861 15.1495V28.3265H41.2331C41.9146 28.3265 42.4669 28.8788 42.4669 29.5603C42.4669 30.2418 41.9146 30.7941 41.2331 30.7941Z",fill:"#00ACEA"}),s.a.createElement("path",{d:"M5.83594 21.331L11.6839 30.4982H0L5.83594 21.331Z",fill:"#00ACEA"}))},h=function(e){return s.a.createElement(m.a,{className:"charts-loading"},s.a.createElement("h3",{className:"st-card-title"},e.title),s.a.createElement("div",{className:"d-flex justify-content-center align-items-center flex-column h-100",style:{minHeight:e.minHeight}},s.a.createElement(y,{height:e.iconSize||"30",width:e.iconSize||"30"}),e.timeInfo&&s.a.createElement("span",{className:"mt-2"},"\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 24 \u0447\u0430\u0441\u043e\u0432"),e.text&&s.a.createElement("span",{className:"mt-2 mx-auto font-size-base"},e.text)))},E=(a(619),s.a.memo((function(e){function t(t){if(void 0===e.analytics.amount||void 0===e.percentData)return{color:"",value:"".concat(0,"%")};var a=e.analytics.amount[t]||0,n=e.percentData[t]||0,s=((a-n)/((a+n)/2||1)*100).toFixed(2);return s>0?{color:"#28C76F",value:"+".concat(s,"%")}:{color:"#EA5455",value:"".concat(s,"%")}}return s.a.createElement(l.a,{className:"statistics-cards"},s.a.createElement(r.a,{sm:"6",lg:"3"},e.analytics&&e.analyticsStatus?s.a.createElement(f,{title:"\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",count:e.analytics.amount?e.analytics.amount.likes:"",data:e.analytics.likes?e.analytics.likes:"",color:"#28C76F",percent:t("likes")}):s.a.createElement(h,{text:"\u0417\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e.",title:"\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",minHeight:"69px"})),s.a.createElement(r.a,{sm:"6",lg:"3"},e.analytics&&e.analyticsStatus?s.a.createElement(f,{title:"\u0420\u0435\u043f\u043e\u0441\u0442\u044b",count:e.analytics.amount?e.analytics.amount.reposts:"",data:e.analytics.reposts?e.analytics.reposts:"",color:"#EA5455",percent:t("reposts")}):s.a.createElement(h,{text:"\u0417\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e.",title:"\u0420\u0435\u043f\u043e\u0441\u0442\u044b",minHeight:"69px"})),s.a.createElement(r.a,{sm:"6",lg:"3"},e.analytics&&e.analyticsStatus?s.a.createElement(f,{title:"\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438",count:e.analytics.amount?e.analytics.amount.comments:"",data:e.analytics.comments?e.analytics.comments:"",color:"#28C76F",percent:t("comments")}):s.a.createElement(h,{text:"\u0417\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e.",title:"\u041a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438",minHeight:"69px"})),s.a.createElement(r.a,{sm:"6",lg:"3"},e.analytics&&e.analyticsStatus?s.a.createElement(f,{title:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b",count:e.analytics.amount?e.analytics.amount.views:"",data:e.analytics.views?e.analytics.views:"",color:"#EA5455",percent:t("views")}):s.a.createElement(h,{text:"\u0417\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e.",title:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u044b",minHeight:"69px"})))}))),g=a(514),b=a(302),v=a(162),N=s.a.memo((function(e){var t={options:{chart:{toolbar:{show:!1},animations:{enabled:!1}},stroke:{curve:"smooth",dashArray:[0,8],width:[4,2]},grid:{borderColor:e.labelColor},legend:{show:!1},colors:[e.dangerLight,e.strokeColor],fill:{type:"gradient",gradient:{shade:"dark",inverseColors:!1,gradientToColors:[e.primary,e.strokeColor],shadeIntensity:1,type:"horizontal",opacityFrom:1,opacityTo:1,stops:[0,100,100,100]}},markers:{size:0,hover:{size:5}},xaxis:{labels:{style:{colors:e.strokeColor}},axisTicks:{show:!1},categories:e.followers.date||[],axisBorder:{show:!1},tickPlacement:"on"},yaxis:{tickAmount:5,labels:{style:{color:e.strokeColor},formatter:function(e){return e.toFixed(1)>999?(e/1e3).toFixed(1)+"k":e.toFixed(1)}}},tooltip:{x:{show:!1},y:{formatter:function(e){return e.toFixed(1).toLocaleString("ru")}}}},series:[{name:"",data:e.followers.followers}]};return s.a.createElement(m.a,{className:"analytics-card"},s.a.createElement("div",{className:"analytics-card__header"},s.a.createElement(g.a,{className:"p-0"},s.a.createElement("div",{className:"analytics-card__title"},"\u041f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438"),s.a.createElement(v.a,{size:20,className:"cursor-pointer text-muted",id:"followers-card__help-icon"}),s.a.createElement(b.a,{placement:"left",target:"followers-card__help-icon"},"\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0430\u043c")),s.a.createElement("div",{className:"followers-card__content"},s.a.createElement("div",{className:"d-flex justify-content-start"},s.a.createElement("div",{className:"mr-2"},s.a.createElement("span",{className:"followers-card__count-title"},"\u0412\u0441\u0435\u0433\u043e"),s.a.createElement("h2",{className:"text-bold-400 mb-0"},s.a.createElement("span",{className:"text-success followers-card__count-value"},e.followers.followers[e.followers.followers.length-1]&&e.followers.followers[e.followers.followers.length-1].toLocaleString("ru")))),e.followers.unsubscribed&&s.a.createElement("div",{className:"mr-2"},s.a.createElement("span",{className:"followers-card__count-title"},"\u041e\u0442\u043f\u0438\u0441\u0430\u043b\u0438\u0441\u044c"),s.a.createElement("h2",{className:"text-bold-400 text-center mb-0"},s.a.createElement("span",{className:"text-danger followers-card__count-value"},e.followers.unsubscribed))),e.followers.newFollowers&&s.a.createElement("div",null,s.a.createElement("span",{className:"followers-card__count-title"},"\u041d\u043e\u0432\u044b\u0435"),s.a.createElement("h2",{className:"text-bold-400 mb-0"},s.a.createElement("span",{className:"text-primary followers-card__count-value"},e.followers.newFollowers)))))),s.a.createElement(d.a,{className:"followers-card__chart",options:t.options,series:t.series,type:"line",height:185}))})),x=s.a.memo((function(e){var t={options:{chart:{sparkline:{enabled:!1},toolbar:{show:!1}},states:{hover:{filter:{type:"none",show:!1}}},colors:[e.labelColor,e.labelColor,e.primary,e.labelColor,e.labelColor,e.labelColor],grid:{show:!1},dataLabels:{enabled:!1},plotOptions:{bar:{columnWidth:"60%",distributed:!0,endingShape:"rounded"}},tooltip:{x:{show:!1}},xaxis:{categories:["14-18","18-24","24-30","30-40","40-50","N/A"],axisBorder:{show:!1},axisTicks:{show:!1}},yaxis:{show:!1},legend:{show:!1}},series:[{name:"",data:e.age.map((function(e){return e.count}))}]};return s.a.createElement(m.a,{className:"analytics-card ".concat(e.bgColor)},s.a.createElement("div",{className:"analytics-card__header"},s.a.createElement("div",{className:"analytics-card__title"},"\u0412\u043e\u0437\u0440\u0430\u0441\u0442")),s.a.createElement("div",{className:"age-card__content"},s.a.createElement(d.a,{options:t.options,series:t.series,type:"bar",height:239})))})),j=a(445),_=s.a.memo((function(e){var t=e.sex.reduce((function(e,t){return e+t.count}),0),a=["primary","danger","warning"];return s.a.createElement(m.a,{className:"analytics-card ".concat(e.bgColor)},s.a.createElement("div",{className:"analytics-card__header"},s.a.createElement("div",{className:"analytics-card__title"},"\u041f\u043e\u043b")),s.a.createElement("div",{className:"analytics-card__content analytics-card__content-small"},s.a.createElement("div",{className:"sex-card__content"},e.sex.map((function(e,n){return s.a.createElement("div",{className:"sex-card__item",key:n},s.a.createElement("div",{className:"d-flex justify-content-between mb-25"},s.a.createElement("div",{className:"analytics-card__info"},s.a.createElement("span",{className:"mb-25"},e.name)),s.a.createElement("div",{className:"stastics-info text-right"},s.a.createElement("span",{className:"text-muted d-block"},"".concat(Object(p.f)(e.count,t),"%")))),s.a.createElement(j.a,{className:"mb-2 big-progress-analytics",color:a[n],value:Object(p.f)(e.count,t)}))})))))})),w=a(100),O=a(393),C=a(153),k=a(151),P=function(e){return s.a.createElement("div",{className:"relation-card__item ".concat(e.className||"")},s.a.createElement("div",{className:"analytics-card__info"},s.a.createElement("span",{className:"mb-25"},e.name)),s.a.createElement("div",{className:"d-flex justify-content-between align-items-center"},s.a.createElement(j.a,{className:"analytics-card__progress big-progress-analytics",color:e.progressColor,value:Object(p.f)(e.count,e.sum)}),s.a.createElement("div",{className:"stastics-info text-right"},s.a.createElement("span",{className:"text-muted d-block"},"".concat(Object(p.f)(e.count,e.sum),"%")))))},S=s.a.memo((function(e){var t=Object(n.useState)(!1),a=Object(w.a)(t,2),c=a[0],l=a[1],r=[],i=[],o=e.relation.reduce((function(e,t){return e+t.count}),0),u=["primary","danger","warning","info","danger"];return e.relation.forEach((function(e,t){t<3?r.push(s.a.createElement(P,{key:t,name:e.name,count:e.count,sum:o,progressColor:u[t]})):i.push(s.a.createElement(P,{key:t,name:e.name,count:e.count,sum:o,progressColor:u[t],className:"relation-card__collapse-item"}))})),s.a.createElement(m.a,{className:"analytics-card relation-card ".concat(e.bgColor)},s.a.createElement("div",{className:"analytics-card__header d-flex justify-content-between"},s.a.createElement("div",{className:"analytics-card__title"},"\u0421\u0435\u043c\u0435\u0439\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435"),e.relation.length>3&&s.a.createElement("span",{onClick:function(){return l(!c)},className:"relation-card__more-link flat-success cursor-pointer"},c?s.a.createElement(C.a,{size:18,className:"mr-25"}):s.a.createElement(k.a,{size:18,className:"mr-25"}),"\u0415\u0449\u0435")),s.a.createElement("div",{className:"analytics-card__content analytics-card__content-small"},r,s.a.createElement(O.a,{isOpen:c},i)))})),T=function(e){return s.a.createElement("div",{className:"country-card__item ".concat(e.className||"")},s.a.createElement("div",{className:"mb-25"},s.a.createElement("div",{className:"country-card__info"},s.a.createElement("span",{className:"mb-25"},e.name)),s.a.createElement("div",{className:"country-card__count"},s.a.createElement("span",{className:"d-block"},"".concat(Object(p.f)(e.count,e.sum),"%")))),s.a.createElement("div",{className:"d-flex justify-content-between align-items-center"},s.a.createElement(j.a,{className:"analytics-card__progress small-progress-analytics",color:"primary",value:Object(p.f)(e.count,e.sum)}),s.a.createElement("div",{className:"stastics-info text-right"},s.a.createElement("span",{className:"text-muted d-block"},e.count.toLocaleString("ru")))))},D=s.a.memo((function(e){var t=e.data.reduce((function(e,t){return e+t.count}),0),a=[],c=[],l=Object(n.useState)(!1),r=Object(w.a)(l,2),i=r[0],o=r[1];return e.data.forEach((function(e,n){n<7?a.push(s.a.createElement(T,{key:n,name:e.name,count:e.count,sum:t})):c.push(s.a.createElement(T,{key:n,name:e.name,count:e.count,sum:t,className:"country-card__collapse-item"}))})),s.a.createElement(m.a,{className:"analytics-card country-city-card ".concat(e.bgColor)},s.a.createElement("div",{className:"analytics-card__header d-flex justify-content-between"},s.a.createElement("div",{className:"analytics-card__title"},e.title),e.data.length>7&&s.a.createElement("span",{onClick:function(){return o(!i)},className:"flat-success cursor-pointer"},i?s.a.createElement(C.a,{size:18,className:"mr-25"}):s.a.createElement(k.a,{size:18,className:"mr-25"}),"\u0415\u0449\u0435")),s.a.createElement("div",{className:"analytics-card__content"},a,s.a.createElement(O.a,{isOpen:i},c)))})),z=s.a.memo((function(e){var t={options:{chart:{},plotOptions:{radialBar:{size:150,offsetY:20,startAngle:-150,endAngle:150,hollow:{size:"65%"},track:{background:e.white,strokeWidth:"100%"},dataLabels:{value:{offsetY:30,color:"#99a2ac",fontSize:"2rem"}}}},colors:[e.danger],fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[e.primary],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},dataLabels:{enabled:!1},stroke:{dashArray:8},labels:["\u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u0430 \u0434\u0435\u043d\u044c"]},series:[e.data]};return s.a.createElement(m.a,{className:"analytics-card"},s.a.createElement("div",{className:"analytics-card__header"},s.a.createElement(g.a,{className:"p-0"},s.a.createElement("div",{className:"analytics-card__title"},"\u0412\u043e\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u044c"),s.a.createElement(v.a,{size:20,className:"cursor-pointer text-muted",id:"involvement-card__help-icon"}),s.a.createElement(b.a,{style:{backgroundColor:"#6F64F8",width:"100%",maxWidth:"400px"},placement:"left",target:"involvement-card__help-icon"},s.a.createElement("h4",{className:"text-center"},"Engagement Rate"),s.a.createElement("p",{className:"font-medium-1 text-left"},"Engagement Rate, \u0438\u043b\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0432\u043e\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u2013 \u044d\u0442\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0430, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0430\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c SocialBakers, \u0438 \u0443\u0436\u0435 \u0441\u0442\u0430\u0432\u0448\u0430\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043e\u043c \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u0439 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u0438 \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435."),s.a.createElement("h4",{className:"text-center"},"\u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u0440\u0430\u0441\u0447\u0435\u0442\u0430"),s.a.createElement("p",{className:"text-center font-medium-1"},"ER% = (\u0410\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438/\u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438)*100%")))),s.a.createElement("div",{className:"involvement-card__content"},s.a.createElement("div",{className:"involvement-card__chart"},s.a.createElement(d.a,{options:t.options,series:t.series,type:"radialBar",height:300,className:"support-tracker-card"}))))})),L=function(e){return s.a.createElement(m.a,{className:"analytics-card spotify-card"},s.a.createElement("div",{className:"analytics-card__header"},s.a.createElement(g.a,{className:"p-0"},s.a.createElement("div",{className:"analytics-card__title"},"Spotify"),s.a.createElement(v.a,{size:20,className:"cursor-pointer text-muted",id:"spotify-card__help-icon"}),s.a.createElement(b.a,{placement:"left",target:"spotify-card__help-icon"},"\u0414\u0430\u043d\u043d\u044b\u0435 \u0410\u0440\u0442\u0438\u0441\u0442\u0430"))),s.a.createElement("div",{className:"d-flex justify-content-center pt-2"},s.a.createElement("span",{className:"popularity pr-2"},"\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c"),s.a.createElement("span",{className:"popularity-count"},e.spotify.popularity)),s.a.createElement("div",{className:"analytics-card__content analytics-card__content-small"},s.a.createElement("div",{className:"row mt-2"},s.a.createElement("div",{className:"col-12 col-md-6"},s.a.createElement("h3",{className:"success"},"\u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u0430\u0440\u0442\u0438\u0441\u0442\u044b"),s.a.createElement("div",{className:"d-flex py-2 flex-column"},e.spotify.related.map((function(e,t){if(t<8)return s.a.createElement("div",{key:t,className:"d-flex w-100 artist align-items-center justify-content-start pt-1 px-1"},s.a.createElement("img",{className:"border-radius-50 mr-2",width:60,height:60,src:e.image,alt:e.name}),s.a.createElement("h4",{className:"mt-1 artist-name"},e.name))})))),s.a.createElement("div",{className:"col-12 col-md-6"},s.a.createElement("h3",{className:"success"},"\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0442\u0440\u0435\u043a\u0438"),s.a.createElement("div",null,e.spotify.tracks.map((function(t,a){if(a<8)return s.a.createElement("h4",{key:a,className:"mt-1 track-name"},e.spotify.name," - ",t)})))))))},q=s.a.memo((function(e){return s.a.createElement("div",{className:"statistics-container"},s.a.createElement(l.a,{className:"mt-2"},s.a.createElement(r.a,{sm:6,xl:3,className:"age-card order-2 order-xl-0"},e.statistics.age&&e.statistics.age.length?s.a.createElement(x,{age:e.statistics.age,labelColor:"#e7eef7",primary:"#7367F0",bgColor:"bg-gray"}):s.a.createElement(h,{title:"\u0412\u043e\u0437\u0440\u0430\u0441\u0442",timeInfo:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 24 \u0447\u0430\u0441\u043e\u0432",iconSize:"55",minHeight:"260px"})),s.a.createElement(r.a,{sm:12,xl:6,className:"order-0 order-xl-1"},e.followers.followers.length?s.a.createElement(N,{primary:"#7367F0",dangerLight:"#f29292",strokeColor:"#b9c3cd",labelColor:"#e7eef7",followers:e.followers,bgColor:"bg-gray"}):s.a.createElement(h,{title:"\u041f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438",timeInfo:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 24 \u0447\u0430\u0441\u043e\u0432",iconSize:"55",minHeight:"260px"})),s.a.createElement(r.a,{sm:6,xl:3,className:"involvement-card order-1"},e.involvement?s.a.createElement(z,{primary:"#7367F0",danger:"#EA5455",white:"#fff",data:e.involvement}):s.a.createElement(h,{title:"\u0412\u043e\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u044c",timeInfo:"",iconSize:"55",minHeight:"260px"}))),s.a.createElement(l.a,null,s.a.createElement(r.a,{xl:6},s.a.createElement(l.a,null,s.a.createElement(r.a,{sm:6,className:"order-1 order-xl-0"},e.statistics.sex&&e.statistics.sex.length?s.a.createElement(_,{sex:e.statistics.sex,bgColor:"bg-gray"}):s.a.createElement(h,{title:"\u041f\u043e\u043b",timeInfo:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 24 \u0447\u0430\u0441\u043e\u0432",iconSize:"55",minHeight:"260px"})),s.a.createElement(r.a,{sm:6,className:"order-2 order-xl-1"},e.statistics.relation&&e.statistics.relation.length?s.a.createElement(S,{relation:e.statistics.relation,bgColor:"bg-gray"}):s.a.createElement(h,{title:"\u0421\u0435\u043c\u0435\u0439\u043d\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435",timeInfo:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 24 \u0447\u0430\u0441\u043e\u0432",iconSize:"55",minHeight:"260px"})),s.a.createElement(r.a,{sm:12,className:"order-0 order-xl-2"},e.spotify.id?s.a.createElement(L,{spotify:e.spotify}):s.a.createElement(h,{title:"Spotify",timeInfo:"",iconSize:"55",minHeight:"260px"})))),s.a.createElement(r.a,{xl:6},s.a.createElement(l.a,null,s.a.createElement(r.a,{sm:6},e.statistics.country&&e.statistics.country.length?s.a.createElement(D,{data:e.statistics.country,title:"\u0421\u0442\u0440\u0430\u043d\u044b",bgColor:"bg-gray"}):s.a.createElement(h,{title:"\u0421\u0442\u0440\u0430\u043d\u044b",timeInfo:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 24 \u0447\u0430\u0441\u043e\u0432",iconSize:"55",minHeight:"578px"})),s.a.createElement(r.a,{sm:6},e.statistics.city&&e.statistics.city.length?s.a.createElement(D,{data:e.statistics.city,title:"\u0413\u043e\u0440\u043e\u0434\u0430",bgColor:"bg-gray"}):s.a.createElement(h,{title:"\u0413\u043e\u0440\u043e\u0434\u0430",timeInfo:"\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 24 \u0447\u0430\u0441\u043e\u0432",iconSize:"55",minHeight:"578px"}))))))})),H=a(2),F=a(6),R=a(7),I=a(12),A=a(13),M=a(101),B=function(e){Object(I.a)(a,e);var t=Object(A.a)(a);function a(){return Object(F.a)(this,a),t.apply(this,arguments)}return Object(R.a)(a,null,[{key:"entity",get:function(){return"analytics"}}]),a}(M.a),G=function(e){Object(I.a)(a,e);var t=Object(A.a)(a);function a(){return Object(F.a)(this,a),t.apply(this,arguments)}return Object(R.a)(a,null,[{key:"entity",get:function(){return"statistics"}}]),a}(M.a),W=function(e){Object(I.a)(a,e);var t=Object(A.a)(a);function a(){return Object(F.a)(this,a),t.apply(this,arguments)}return Object(R.a)(a,null,[{key:"entity",get:function(){return"followers"}}]),a}(M.a),V=a(421),Z=a(422),J=a(25),K=a(33),X=a(28),Y=function(e,t){return function(a){a(Object(X.e)("analytics")),B.index(e,!t).then((function(e){var n=e.data.analytics.data,s=e.data.amount,c=[],l=[],r=[],i=[];t?a({type:J.i,payload:s}):(n.forEach((function(e){c.push(e.comments),l.push(e.likes),r.push(e.reposts),i.push(e.views)})),U(J.c,{comments:c,likes:l,reposts:r,views:i,amount:s})(a))})).finally((function(){a(Object(X.g)("analytics")),a({type:J.f,payload:!0})}))}},U=function(e,t){return function(a){a({type:e,payload:t})}},Q=a(308),$=function(e){return s.a.createElement(Q.a,{className:"input-dark-bg ".concat(e.className),classNamePrefix:"dark_select",defaultValue:e.selectedCountDay,name:"color",options:[{value:7,label:"7 \u0434\u043d\u0435\u0439"},{value:14,label:"14 \u0434\u043d\u0435\u0439"},{value:30,label:"30 \u0434\u043d\u0435\u0439"},{value:90,label:"90 \u0434\u043d\u0435\u0439"}],onChange:function(t){e.setData(J.d,Object(H.a)(Object(H.a)({},Object(p.g)(t.value)),{},{limit:t.value})),e.setData(J.j,t)}})},ee=a(333),te=(a(620),a(314));t.default=Object(c.b)((function(e){return{statisticsRequestParams:e.analytics.statisticsRequestParams,followersRequestParams:e.analytics.followersRequestParams,requestParams:e.analytics.analyticsRequestParams,selectedCountDay:e.analytics.selectedCountDay,projectRequestParams:e.projects.requestParams,analyticsStatus:e.analytics.analyticsStatus,selectedProject:e.analytics.selectedProject,percentData:e.analytics.percentData,statistics:e.analytics.statistics,spotify:e.analytics.spotify,analytics:e.analytics.analytics,followers:e.analytics.followers,countDay:e.analytics.countDay,group_id:e.analytics.group_id,projectsList:e.projects.list,spinner:e.helper.spinner}}),{setData:X.a,getAnalyticsData:function(e,t,a,n){var s=Object(H.a)(Object(H.a)(Object(H.a)({},e),Object(p.h)(e.limit,e.from)),{},{to:e.from});return function(c){var l,r,i=n.group.id,o=n.spotify.id;Y(Object(H.a)(Object(H.a)({},e),{},{group_id:i}))(c),Y(Object(H.a)(Object(H.a)({},s),{},{group_id:i}),!0)(c),function(e){var t={};return function(a){a(Object(X.e)("analytics")),G.index(e).then((function(e){e.data.statistics.data.forEach((function(e){t[e.key]=e.value})),a({type:J.l,payload:t})})).finally((function(){return a(Object(X.g)("analytics"))}))}}(Object(H.a)(Object(H.a)({},t),{},{group_id:i}))(c),(l=Object(H.a)(Object(H.a)({},a),{},{group_id:i}),function(e){e(Object(X.e)("analytics")),W.index(l).then((function(t){var a=[],n=[],s="",c="",l=t.data.followers.data;l.length&&(l.forEach((function(e){a.push(new Date(1e3*e.date).getDate()),n.push(e.followers)})),n.length>1&&(n[0]<n[n.length-1]?s=n[n.length-1]-n[0]:n[0]>n[n.length-1]&&(c=n[0]-n[n.length-1]))),e({type:J.g,payload:{date:a,followers:n,newFollowers:s,unsubscribed:c}})})).finally((function(){return e(Object(X.g)("analytics"))}))})(c),(r=o,function(e){e(Object(X.e)("analytics")),Z.a.getById(r,{},!1).then((function(t){e({type:J.k,payload:t.data.spotify})})).finally((function(){return e(Object(X.g)("analytics"))}))})(c)}},getProjectList:function(e,t){return function(a){a(Object(X.e)("analytics"));var n=t.value;V.a.index(Object(H.a)(Object(H.a)({},e),{},{limit:null,page:1})).then((function(e){var t=e.data.projects.data;a({type:K.h,payload:e.data.projects});var s=t[0];if(n){var c=t.find((function(e){return e.id===n}));c&&(s=c)}console.log(s),a({type:J.e,payload:Object(H.a)(Object(H.a)({},s),{},{value:s.id,label:s.name})}),a({type:J.d,payload:{group_id:s.group.id}})})).finally((function(){return a(Object(X.g)("analytics"))}))}}})((function(e){var t=function(){e.getAnalyticsData(e.requestParams,e.statisticsRequestParams,e.followersRequestParams,e.selectedProject)};Object(n.useEffect)((function(){return e.getProjectList(e.projectRequestParams,e.selectedProject),function(){e.setData(J.b)}}),[]),Object(n.useEffect)((function(){e.selectedProject.id&&t()}),[e.requestParams]);return s.a.createElement("div",{className:"page-container analytics-container"},e.spinner.includes("analytics")&&s.a.createElement(te.a,null),s.a.createElement("div",{className:"page-content-header"},s.a.createElement(l.a,null,s.a.createElement(r.a,{sm:"12",md:"2",xl:"3"},s.a.createElement("h2",{className:"content-title float-left mb-0"},"\u0410\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430")),s.a.createElement(r.a,{sm:"12",md:"10",xl:"9",className:"d-sm-flex flex-column flex-sm-row justify-content-end mt-sm-1 mt-md-0"},s.a.createElement("div",{className:"analytics-select-project pl-md-3 pl-lg-0 mt-1 mt-sm-0"},s.a.createElement(ee.a,{maxMenuHeight:250,className:"analytics-select",projectList:e.projectsList,requestParams:e.requestParams,setData:e.setData,selectedProject:e.selectedProject,onChange:function(t){e.setData(J.d,{group_id:t.group_id}),e.setData(J.e,t)},isGetProjects:!1})),s.a.createElement("div",{className:"analytics-select-limit mt-1 mt-sm-0"},s.a.createElement($,{className:"analytics-select",requestParams:e.requestParams,setData:e.setData,selectedCountDay:e.selectedCountDay})),s.a.createElement("div",{className:"analytics-update-button mt-1 mt-sm-0"},s.a.createElement(i.a.Ripple,{color:"danger",className:"analytics-update-btn d-flex align-items-center justify-content-center",onClick:function(){return t()}},s.a.createElement(o.a,{className:"btn-icon",size:14}),"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c"))))),s.a.createElement(E,{analytics:e.analytics,percentData:e.percentData,analyticsStatus:e.analyticsStatus}),s.a.createElement(q,{involvement:e.analytics&&e.analytics.amount&&e.followers&&e.followers.followers[e.followers.followers.length-1]?((e.analytics.amount.comments+e.analytics.amount.likes+e.analytics.amount.reposts)/e.followers.followers[e.followers.followers.length-1]*100/(e.requestParams?e.requestParams.limit:7)).toFixed(2):0,statistics:e.statistics,followers:e.followers,spotify:e.spotify}))}))}}]);
//# sourceMappingURL=13.346d67fe.chunk.js.map